package com.iscas.tech.service;

import com.iscas.tech.entity.AtMdbusyValue;
import com.iscas.tech.param.AtMdbusyValuePageParam;
import com.iscas.tech.vo.AtMdbusyValueQueryVo;
import io.geekidea.springbootplus.framework.common.service.BaseService;
import io.geekidea.springbootplus.framework.pagination.Paging;

/**
 * 模块业务值对应表 服务类
 *
 * @author yangyi
 * @since 2020-10-26
 */
public interface AtMdbusyValueService extends BaseService<AtMdbusyValue> {

    /**
     * 保存
     *
     * @param atMdbusyValue
     * @return
     * @throws Exception
     */
    boolean saveAtMdbusyValue(AtMdbusyValue atMdbusyValue) throws Exception;

    /**
     * 修改
     *
     * @param atMdbusyValue
     * @return
     * @throws Exception
     */
    boolean updateAtMdbusyValue(AtMdbusyValue atMdbusyValue) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteAtMdbusyValue(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param atMdbusyValuePageParam
     * @return
     * @throws Exception
     */
    Paging<AtMdbusyValueQueryVo> getAtMdbusyValuePageList(AtMdbusyValuePageParam atMdbusyValuePageParam) throws Exception;

    /**
     * @param bsId   业务ID
     * @param mdType {@link com.iscas.tech.bo.MdType}所属功能
     * @throws Exception 删除异常
     */
    void deleteByBsId(Long bsId, Integer mdType) throws Exception;
}
